package com.example.sofa_module.sofa.fragments.text;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.bw.ijk.widget.IjkView;
import com.example.baserecyclerview.quick.BaseQuickAdapter;
import com.example.baserecyclerview.quick.BaseViewHolder;
import com.example.sofa_module.R;
import com.example.sofa_module.sofa.entity.BeanEntity;

;

public class TextAdapter extends BaseQuickAdapter<BeanEntity, BaseViewHolder> {


    public TextAdapter() {
        super(R.layout.item_sofa);
    }

    @Override
    public void convert(BaseViewHolder holder, BeanEntity item) {
        //文本
            holder.setText(R.id.item_video_artist,item.author.name);
            holder.setText(R.id.item_video_feeds_content,item.author.description);
            holder.setText(R.id.item_video_type,item.activityText);

            holder.setText(R.id.item_video_comment_count,""+item.ugc.commentCount);
            holder.setText(R.id.item_video_share_count,""+item.ugc.shareCount);

            holder.setImageyun(R.id.item_video_pic,item.author.avatar);
            ImageView imageView = holder.getView(R.id.item_video_bigimg);
            imageView.setVisibility(View.GONE);
            TextView textView = holder.getView(R.id.item_video_type);
            textView.setVisibility(View.GONE);
    }
}
